package com.bitcola.me.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@Table(name = "ag_admin_v1.news")

public class News {
    @Id
    @Column(name = "id")
    String id;
    @Column(name = "content")

    @JsonIgnore
    String content;
    @Column(name = "title")

    String title;
    @Column(name = "type")

    String type;
    @Column(name = "time")

    Date time;
}
